/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.DichVu;
import thienphuc.patient.dto.LoaiDichVu;

/**
 *
 * @author QuocDat
 */
public interface DichVuBO {
    
    /**
     * Get all DichVu
     * @return 
     */
    List<DichVu> getAll() throws Exception;
    
    /**
     * Get DichVu by MaDichVu
     * @param maDichVu
     * @return
     * @throws Exception 
     */
    DichVu getById(int maDichVu) throws Exception;
    
    /**
     * Get DichVu by TenDichVu
     * @param tenDichVu
     * @return
     * @throws Exception 
     */
    List<DichVu> getByTenDichVu(String tenDichVu) throws Exception;
    
    /**
     * Get DichVu by LoaiDichVu
     * @param loaiDichVu
     * @return
     * @throws Exception 
     */
    List<DichVu> getByLoaiDichVu(LoaiDichVu loaiDichVu) throws Exception;
    
    /**
     * Insert DichVu
     * @param dichVu
     * @return
     * @throws Exception 
     */
    boolean insertDichVu(DichVu dichVu) throws Exception;
    
    /**
     * Update DichVu
     * @param dichVu
     * @return
     * @throws Exception 
     */
    boolean updateDichVu(DichVu dichVu) throws Exception;
    
}
